// directives/index.js
import Throttle from './throttle'

const directives = [Throttle]
console.log(`Throttle`, Throttle)
const DirectivePlugin = {
  install: function (app) {
    directives.forEach((directive) => {
      console.log(`Throttle1`, directive.name)
      app.directive(directive.name, directive)
    })
  },
}

export default DirectivePlugin
